import { defineBoot } from '#q-app/wrappers';
import { defineAsyncComponent } from 'vue';
const components = Object.values(
  import.meta.glob('src/pages/BiographicalNotes/components/Component/**/index.js', {
    eager: true,
  }),
).map((item) => {
  return {
    ...item.default,
    // id: uid(),
    // model: {},
  };
});
import GroupComponent from 'src/pages/BiographicalNotes/components/GroupComponent/GroupComponent.vue';
// import Root from 'src/pages/BiographicalNotes/components/Root/index.js';
export default defineBoot(({ app }) => {
  app.component(GroupComponent.name, GroupComponent);
  // pages.forEach((page) => {
  //   app.component(page.name, defineAsyncComponent(page.component));
  // });
  // layouts.forEach((layout) => {
  //   app.component(layout.name, defineAsyncComponent(layout.component));
  // });
  components.forEach((component) => {
    app.component(component.name, defineAsyncComponent(component.component));
  });
});
